import request from '@/utils/request'

export function listContent(query) {
  return request({
    url: '/system/eventsinfo/list',
    method: 'get',
    params: query
  })
}

export function getContent(id) {
  return request({
    url: '/system/eventsinfo/' + id,
    method: 'get'
  })
}

export function addContent(data) {
  return request({
    url: '/system/eventsinfo',
    method: 'post',
    data: data
  })
}

export function updateContent(data) {
  return request({
    url: '/system/eventsinfo',
    method: 'put',
    data: data
  })
}

export function delContent(id) {
  return request({
    url: '/system/eventsinfo/' + id,
    method: 'delete'
  })
}
